using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.Domain
{
    /// <summary>
    /// 当前用户缓存实体
    /// </summary>
    public class CurrentUserInfo
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { set; get; }
        /// <summary>
        /// Email
        /// </summary>
        public string UserEmail { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string UserMobile { get; set; }

        /// <summary>
        /// 根公司ID 
        /// </summary>
        public int ROID { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public int OID { get; set; }
        /// <summary>
        /// 部门IDS
        /// </summary>
        //public int ODID { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string OrganizationName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
       //public string DepartmentName { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }

        /// <summary>
        /// 用户类型 1 车主用户 2 后端用户
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string OpenID { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public string Expires { get; set; }

        /// <summary>
        /// 是否自己更新过密码
        /// </summary>
        public bool HasUpdatedPwdSelf { get; set; }

        /// <summary>
        /// 组织路径
        /// </summary>
        public IEnumerable<int> RootOrgDescendantsIds { get; set; }
    }
}
